#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("mult.in" , "r" , stdin);
	freopen("mult.out" , "w" , stdout);
	char a[110] , b[110];
	int sum = 0;
	scanf("%s" , a);
	scanf("%s" , b);
	for(size_t i = 0 ; i < strlen(a) ; i++){
		int p = a[i] - '0';
		for(size_t j = 0 ; j < strlen(b) ; j++){
			int q = b[j] - '0';
			sum = sum + p * q;
		}
	}
	cout << sum << endl;
	return 0;
}